package com.yang;



import com.yang.server.TaskReplacementServer;
import com.yang.util.ApplicationContextProvider;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @Author 杨天可
 * @Date 2020/10/15 10:53
 * @Version 1.0
 */
@SpringBootApplication
@MapperScan("com.yang.mapper")
public class MainController implements CommandLineRunner {
    public static  void main(String[] args) throws Exception{
        SpringApplication.run(MainController.class,args);
    }

    @Override
    public void run(String... args) throws Exception {
        //补卡申请，添加消息到主消息列表
        TaskReplacementServer taskReplacementServer = ApplicationContextProvider
                .getBean("taskReplacementServer",TaskReplacementServer.class);
        taskReplacementServer.start();

        //请假申请，添加消息到主消息列表
    }
}